import request from '@/utils/request'

// 查询拼团明细列表
export function listGroupdetail(query) {
  return request({
    url: '/activity/groupdetail/list',
    method: 'get',
    params: query
  })
}

// 查询拼团明细详细
export function getGroupdetail(id) {
  return request({
    url: '/activity/groupdetail/' + id,
    method: 'get'
  })
}

// 新增拼团明细
export function addGroupdetail(data) {
  return request({
    url: '/activity/groupdetail',
    method: 'post',
    data: data
  })
}

// 修改拼团明细
export function updateGroupdetail(data) {
  return request({
    url: '/activity/groupdetail',
    method: 'put',
    data: data
  })
}

// 删除拼团明细
export function delGroupdetail(id) {
  return request({
    url: '/activity/groupdetail/' + id,
    method: 'delete'
  })
}
